package controller;

import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Window;

public class Customer extends Window {
	private static final long serialVersionUID = 1L;

	public void onNavigation(Event evt) {
		String target = (String) evt.getData();
		System.out.println(target);
		if (target.equals("index")) {
			Executions.sendRedirect("index.zul");
		} else {
			Executions.sendRedirect("customer.zul?target=" + target);
		}
	}
	
}
